import 'dart:convert';
import 'package:getxdemo/generated/json/base/json_field.dart';
import 'package:getxdemo/generated/json/adv_model_entity.g.dart';

@JsonSerializable()
class AdvModelEntity {

	int? code;
	String? msg;
	AdvModelData? data;
  
  AdvModelEntity();

  factory AdvModelEntity.fromJson(Map<String, dynamic> json) => $AdvModelEntityFromJson(json);

  Map<String, dynamic> toJson() => $AdvModelEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class AdvModelData {

	AdvModelDataAdvPlace? advPlace;
	List<AdvModelDataAdv>? adv;
  
  AdvModelData();

  factory AdvModelData.fromJson(Map<String, dynamic> json) => $AdvModelDataFromJson(json);

  Map<String, dynamic> toJson() => $AdvModelDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class AdvModelDataAdvPlace {

	String? advPlaceId;
	String? advPlaceName;
	int? advPlaceType;
	String? createTime;
	dynamic createBy;
	String? updateTime;
	dynamic updateBy;
	dynamic startFlag;
	dynamic playTime;
  
  AdvModelDataAdvPlace();

  factory AdvModelDataAdvPlace.fromJson(Map<String, dynamic> json) => $AdvModelDataAdvPlaceFromJson(json);

  Map<String, dynamic> toJson() => $AdvModelDataAdvPlaceToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class AdvModelDataAdv {

	String? advId;
	String? advPlaceId;
	String? advText;
	String? advPicUrl;
	String? advLinkUrl;
	dynamic advNativeUrl;
	dynamic advMpUrl;
	int? advStatus;
	int? jumpType;
	String? jumpContent;
	int? advSerial;
	dynamic beginTime;
	dynamic endTime;
	int? delFlag;
	String? createTime;
	String? createBy;
	String? updateTime;
	String? updateBy;
	String? version;
	String? describe;
	dynamic topicTitle;
	dynamic topicId;
	dynamic topicContent;
	dynamic topicPicUrl;
	dynamic bookDriveUrl;
  
  AdvModelDataAdv();

  factory AdvModelDataAdv.fromJson(Map<String, dynamic> json) => $AdvModelDataAdvFromJson(json);

  Map<String, dynamic> toJson() => $AdvModelDataAdvToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}